<#assign title="产品类型添加页面">
<#include "/admin/inc/top.html"/>
<div class="main-content" id="main-content">
    <header class="header navbar bg-white shadow">
        <div class="btn-group tool-button">
            <a class="btn btn-primary navbar-btn" href="${base!}/private/fof/productType" data-pjax><i
                    class="fa fa-reply"></i> 返回</a>
        </div>
    </header>
    <section class="content">

        <div class="form-wrapper" style="min-height:500px;">
            <section class="panel panel-form">
                <form id="unitAddForm" role="form" class="form-horizontal parsley-form" data-parsley-validate
                      action="${base!}/private/fof/productType/addDo" method="post">
                    <div class="row mb10">
                        <div class="col-lg-12">
                            <div class="form-group">
                                <label for="name" class="col-sm-2 control-label">产品类型名称</label>

                                <div class="col-sm-8">
                                    <input type="text" id="name" class="form-control" name="name"
                                    data-parsley-required="true"  placeholder="产品类型名称">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label for="profitId" class="col-sm-2 control-label">收益类型名称</label>

                                <div class="col-sm-8">
                                    <select id="profitId" class="form-control" name="profitId"
                                            data-parsley-required="true"  placeholder="收益类型名称">
                                        <option value="1">绝对收益</option>
                                        <option value="2">相对收益</option>
                                    </select>
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label for="assetStrategyArr" class="col-sm-2 control-label">资产/策略配置</label>

                                <div class="col-sm-8">
                                    <select id="assetStrategyArr" class="form-control" name="assetStrategyArr"
                                            data-parsley-required="true"  placeholder="资产/策略配置" multiple="multiple">
                                        <optgroup label="资产" class="group-1">
                                            <#list assetInfoList as assetInfo>
                                                <option value="${assetInfo.id}">${assetInfo.name}</option>
                                            </#list>
                                        </optgroup>
                                        <optgroup label="策略" class="group-2">
                                            <#list strategyInfoList as strategy>
                                                <option value="${strategy.id}">${strategy.name}</option>
                                            </#list>
                                        </optgroup>
                                    </select>
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label for="rcm" class="col-sm-2 control-label">是否推荐</label>

                                <div class="col-sm-8">
                                    <input class="ichk" type="checkbox" name="rcm" id="rcm" value="1">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <!--<div class="form-group">-->
                                <!--<label for="wind001" class="col-sm-2 control-label">万德Invest_type</label>-->

                                <!--<div class="col-sm-8">-->
                                    <!--<input type="text" id="wind001" class="form-control" name="wind001"-->
                                           <!--placeholder="万德Invest_type(多个请用英文逗号,分隔)">-->
                                <!--</div>-->
                            <!--</div>-->
                            <!--<div class="hr-line-dashed"></div>-->
                            <!--<div class="form-group">-->
                                <!--<label for="wind002" class="col-sm-2 control-label">万德invest_style</label>-->

                                <!--<div class="col-sm-8">-->
                                    <!--<input type="text" id="wind002" class="form-control" name="wind002"-->
                                           <!--placeholder="万德invest_style(多个请用英文逗号,分隔)">-->
                                <!--</div>-->
                            <!--</div>-->
                            <!--<div class="hr-line-dashed"></div>-->
                            <!--<div class="form-group">-->
                                <!--<label for="wind003" class="col-sm-2 control-label">万德003筛选词</label>-->

                                <!--<div class="col-sm-8">-->
                                    <!--<input type="text" id="wind003" class="form-control" name="wind003"-->
                                           <!--placeholder="万德003筛选词">-->
                                <!--</div>-->
                            <!--</div>-->
                            <!--<div class="hr-line-dashed"></div>-->
                            <!--<div class="form-group">-->
                                <!--<label for="wind004" class="col-sm-2 control-label">万德004筛选词</label>-->

                                <!--<div class="col-sm-8">-->
                                    <!--<input type="text" id="wind004" class="form-control" name="wind004"-->
                                           <!--placeholder="万德004筛选词">-->
                                <!--</div>-->
                            <!--</div>-->
                            <!--<div class="hr-line-dashed"></div>-->
                            <!--<div class="form-group">-->
                                <!--<label for="goal001" class="col-sm-2 control-label">朝阳永续fund_type_target</label>-->

                                <!--<div class="col-sm-8">-->
                                    <!--<input type="text" id="goal001" class="form-control" name="goal001"-->
                                           <!--placeholder="朝阳永续fund_type_target(多个请用英文逗号,分隔)">-->
                                <!--</div>-->
                            <!--</div>-->
                            <!--<div class="hr-line-dashed"></div>-->
                            <!--<div class="form-group">-->
                                <!--<label for="goal002" class="col-sm-2 control-label">朝阳永续fund_type_strategy</label>-->

                                <!--<div class="col-sm-8">-->
                                    <!--<input type="text" id="goal002" class="form-control" name="goal002"-->
                                           <!--placeholder="朝阳永续fund_type_strategy(多个请用英文逗号,分隔)">-->
                                <!--</div>-->
                            <!--</div>-->
                            <!--<div class="hr-line-dashed"></div>-->
                            <!--<div class="form-group">-->
                                <!--<label for="goal003" class="col-sm-2 control-label">朝阳永续fund_type_quant</label>-->

                                <!--<div class="col-sm-8">-->
                                    <!--<input type="text" id="goal003" class="form-control" name="goal003"-->
                                           <!--placeholder="朝阳永续fund_type_quant(多个请用英文逗号,分隔)">-->
                                <!--</div>-->
                            <!--</div>-->
                            <!--<div class="hr-line-dashed"></div>-->
                            <!--<div class="form-group">-->
                                <!--<label for="goal004" class="col-sm-2 control-label">朝阳永续fund_type_hedging</label>-->

                                <!--<div class="col-sm-8">-->
                                    <!--<input type="text" id="goal004" class="form-control" name="goal004"-->
                                           <!--placeholder="朝阳永续fund_type_hedging(多个请用英文逗号,分隔)">-->
                                <!--</div>-->
                            <!--</div>-->
                            <!--<div class="hr-line-dashed"></div>-->
                            <!--<div class="form-group">-->
                                <!--<label for="description" class="col-sm-2 control-label">描述信息</label>-->

                                <!--<div class="col-sm-8">-->
                                    <!--<textarea type="text" id="description" class="form-control" name="description"-->
                                    <!--data-parsley-required="true"  placeholder="描述信息"></textarea>-->
                                <!--</div>-->
                            <!--</div>-->
                            <!--<div class="hr-line-dashed"></div>-->
                        </div>
                    </div>
                    <div class="col-lg-3"></div>
                    <div class="col-lg-6">
                        <div class="form-group text-center">
                            <label></label>

                            <div>
                                <button class="btn btn-primary btn-block btn-lg btn-parsley"
                                        data-loading-text="正在提交...">提 交
                                </button>
                            </div>
                        </div>
                    </div>
                </form>
            </section>

        </div>
        <a class="exit-offscreen"></a>
    </section>
</div>
<script language="JavaScript">
    $(document).ready(function () {
        $('#unitAddForm').ajaxForm({
            dataType: 'json',
            beforeSubmit: function (arr, form, options) {
                form.find("button:submit").button("loading");
            },
            success: function (data, statusText, xhr, form) {
                if (data.code == 200) {
                    Toast.success(data.msg);
                    form.resetForm();
                } else {
                    Toast.error(data.msg);
                }
                form.find("button:submit").button("reset");
            }
        });
        $('#assetStrategyArr').multiselect();
    });
</script>
<#include "/admin/inc/bottom.html"/>